Optimal. Leaf size=35 \[ -\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {646, 37} \[ -\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 37
Rule 646
Rubi steps
\begin {align*} \int \frac {\sqrt {a^2+2 a b x+b^2 x^2}}{x^3} \, dx &=\frac {\sqrt {a^2+2 a b x+b^2 x^2} \int \frac {a b+b^2 x}{x^3} \, dx}{a b+b^2 x}\\ &=-\frac {(a+b x) \sqrt {a^2+2 a b x+b^2 x^2}}{2 a x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 31, normalized size = 0.89 \[ -\frac {\sqrt {(a+b x)^2} (a+2 b x)}{2 x^2 (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.98, size = 11, normalized size = 0.31 \[ -\frac {2 \, b x + a}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 39, normalized size = 1.11 \[ -\frac {b^{2} \mathrm {sgn}\left (b x + a\right )}{2 \, a} - \frac {2 \, b x \mathrm {sgn}\left (b x + a\right ) + a \mathrm {sgn}\left (b x + a\right )}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 28, normalized size = 0.80 \[ -\frac {\left (2 b x +a \right ) \sqrt {\left (b x +a \right )^{2}}}{2 \left (b x +a \right ) x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.41, size = 80, normalized size = 2.29 \[ \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} b^{2}}{2 \, a^{2}} + \frac {\sqrt {b^{2} x^{2} + 2 \, a b x + a^{2}} b}{2 \, a x} - \frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )}^{\frac {3}{2}}}{2 \, a^{2} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 27, normalized size = 0.77 \[ -\frac {\sqrt {{\left (a+b\,x\right )}^2}\,\left (a+2\,b\,x\right )}{2\,x^2\,\left (a+b\,x\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.13, size = 12, normalized size = 0.34 \[ \frac {- a - 2 b x}{2 x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________